#include "common.hpp"
#include <unistd.h>
int main()
{
    //1、创建或者获取shm(客户端和服务端，谁先运行，谁就创建shm)
    int shmid = creatOrGetshm(4096);


    //2、关联shm
    void* shmaddr = shmAttach(shmid);
    sleep(5);

    //3、解除关联
    shmDetach(shmaddr);
    sleep(10);
    
    //4、删除共享内存
    //deleteShm(shmid);

    return 0;
}